/*
 * Copyright © 2022 XXXXXXXXX
 * @Author: zhangxiang
 * @Date: 2022-07-19 09:42:10
 * @LastEditors: zhangxiang
 * @LastEditTime: 2022-11-01 11:37:35
 * @Description:
 *
 */

/**
 * @description: 获取存储的数据
 * @param {*} key
 * @return {*}
 */
export function getStorage(key) {
  return localStorage.getItem(key)
}

/**
 * @description: 保存
 * @param {*} key
 * @param {*} data
 * @return {*}
 */
export function setStorage(key, data) {
  return localStorage.setItem(key, data)
}

/**
 * @description: 移除
 * @param {*} key
 * @return {*}
 */
export function removeStorage(key) {
  return localStorage.removeItem(key)
}
